import easygui as eg
import sys

if __name__ == "__main__":
    while 1:
        eg.msgbox("嗨，欢迎进入第一个界面小游戏T_T")
        msg = "请问你希望在鱼C工作室学习到什么知识呢？"
        title = "小游戏互动"
        choices = ["谈恋爱", "编程", "游戏", "琴棋书画"]

        choice = eg.choicebox(msg, title, choices)

        eg.msgbox("你的选择是：" + str(choice), "结果")

        msg = "你希望重新开始小游戏嘛？"
        title = "请选择"

        # 弹出一个Continue/Cancel对话框
        if eg.ccbox(msg, title):
            pass
        else:
            sys.exit(0)
